<template>
  <div>
    <student :age="age" :name="name" :sex="sex"></student>
  </div>
</template>

<script>
    //引入组件
    import student from './components/student.vue'
    export default {
      name: 'App',
      data () {
        return {
          msg: '欢迎学习vue',
          age: 18,
          name: '2222',
          sex: '男'
        }
      },
      components: {
        student
      }
    }
</script>

<style>

</style>